//https://leetcode.cn/problems/single-number/description/

class Solution {
public:
    int singleNumber(vector<int>& nums) {
        int ret = 0;
        for (auto a : nums)
            ret ^= a;
        return ret;
    }
};